// import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
import QtQuick 1.1

Image{
    id: _root
    anchors.horizontalCenter: parent.horizontalCenter
    y: 115 * viewScale
    width: 674 * viewScale
    height: 834 * viewScale
    smooth: true
    source: isLeft ? "images/home_edge_left.png" : "images/home_edge_right.png"
    opacity: 0

    property bool isLeft: true
    property real viewScale: 1.0

    transform: Rotation {
        origin.x: isLeft ? (400 * viewScale) : (320 * viewScale)
        origin.y: 834 * viewScale / 2
        axis { x: 0; y: 1; z: 0 } angle: _root.opacity * 20 * (isLeft ? 1: -1)}
    function reset(){
        if(_anim.running === false){
            _anim.start();
        }
    }
    NumberAnimation{
        id: _anim
        running: false
        target: _root
        property: "opacity"
        to: 0
        duration: 200
    }
}
